package com.dzx.design.behavioral.mediator;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月15日 08:36:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    private String name;
    public void sendMessage(String message) {
        StudyGroup.showMessage(this, message);
    }
}
